<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>music</title>
</head>
<style>
        .box {
            width: 1000px;
            height: 500px;
            border: 1px solid transparent;
            margin: 50px auto;
            background-image: url("img/bg1.jpg");
            animation: go 10s  linear normal infinite;
        }

        .contain {
            width: 600px;
            height: 500px;
            border: 0px solid dodgerblue;
            margin-left: 200px;
            position: relative;
        }

        @keyframes  go {
            25% {
                background-image: url("img/10.jpg")
            }

            50% {
                background-image: url("img/11.jpg")
            }

            75% {
                background-image: url("img/12.jpg")
            }

            100% {
                background-image: url("img/13.jpg")
            }
        }

        .contain_one {
            position: absolute;
            top: 0;
            left: 0;
            transition: all  2s ease;
        }
    
        .contain_one img {
            width: 300px;
            height: 500px;
        }

        .contain_two {
            position: absolute;
            top: 0;
            right: 0;
            transition: all  2s ease;
        }
    
        .contain_two img {
            width: 300px;
            height: 500px;
        }

        .con_video {
            position: absolute;
            top: 70px;
            left: 90px;
        }

        .contain:hover  .contain_one {
            transform: translateX(-290px);
            
        }
    
         .contain:hover .contain_two {
            transform: translateX(290px);          
        }
    </style>
<body>
    <div class="box">
        <div class="contain">
            <div class="contain_one">
                <img src="img/4.jpg">
            </div>
            <div class="contain_two">
                <img src="img/5.jpg">
            </div>
            <div class="con_video">
                <video src="img/jay.mp4" autoplay width="430" height="364" loop></video>
            </div>
        </div>
    </div>
</body>
</html>